﻿using System.Collections.Generic;

namespace IOA.MES.WebTool.WebSocketSupport.CommandModels
{
    public class QueryDownloadImagesResponse
    {
        /// <summary>
        /// 下载列表
        /// </summary>
        public List<DownloadItem> DownloadItems { get; set; } = new List<DownloadItem>();
    }

    public class DownloadItem
    {
        /// <summary>
        /// 是否是文件夹
        /// </summary>
        public bool IsFolder { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 下载地址
        /// </summary>
        public string DownloadUrl { get; set; }

        /// <summary>
        /// 子列表
        /// </summary>
        public List<DownloadItem> Children { get; set; } = new List<DownloadItem>();
    }
}
